<?php
namespace haibao\cms\model\data\behavior;

class FeatureMonitorCount extends \haibao\cms\model\data\Base{
	const TYPE_HOUR = 1;
	const TYPE_DAY = 2;
	
	public $PV = 0;
	public $CK = 0;
	public $IpCount = 0;
	public $Time;
	public $UV = 0;
	public $FeatureId;
	public $RegUserCount = 0;
	
	public function __construct(){
		parent::__construct();
	
		$this->intField('PV', 'PV',true);
		$this->intField('CK', 'CK',true);
		$this->intField('IpCount', 'IpCount',true);
		$this->dateField('Time','Time',true);
		$this->intField('UV', 'UV',true);
		$this->intField('FeatureId','FeatureId',true);
		$this->intField('RegUserCount','RegUserCount',false);
		
		$this->setTableName('FeatureMonitorCount');
	}
	
	public function setTableName($tableName){
		parent::setTableName($tableName);
	}
}

	